package com.whiteape.book.model.bo;

import com.chad.library.adapter.base.entity.SectionEntity;
import com.whiteape.book.model.dto.SiteSourceBean;
import com.whiteape.book.model.dto.SiteSourceCategoryBean;

/**
 * Created by Raul_lsj on 2018/3/22.
 */

public class ScrollBean extends SectionEntity<ScrollBean.ScrollItemBean> {

    public ScrollBean(boolean isHeader, String header) {
        super(isHeader, header);
    }

    public ScrollBean(ScrollBean.ScrollItemBean bean) {
        super(bean);
    }

    public static class ScrollItemBean {
        private String text;
        private String type;
        private String url;
        private SiteSourceBean siteSourceBean;
        private SiteSourceCategoryBean categoryBean;

        public ScrollItemBean(String type, SiteSourceCategoryBean categoryBean, SiteSourceBean siteSourceBean) {
            this.text = categoryBean.getCategoryName();
            this.type = type;
            this.url = categoryBean.getCategoryUrl();
            this.categoryBean = categoryBean;
            this.siteSourceBean = siteSourceBean;
        }

        public SiteSourceBean getSiteSourceBean() {
            return siteSourceBean;
        }

        public void setSiteSourceBean(SiteSourceBean siteSourceBean) {
            this.siteSourceBean = siteSourceBean;
        }

        public SiteSourceCategoryBean getCategoryBean() {
            return categoryBean;
        }

        public void setCategoryBean(SiteSourceCategoryBean categoryBean) {
            this.categoryBean = categoryBean;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}